home *** CD-ROM | disk | FTP | other *** search
/ funcom 2000 Presskit / 000721_1312 (fun.com).iso / online.dir / 00013_Script_Play Movie X < prev   
Text File  |  2000-04-17  |  2KB  |  72 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return "¼
  5. PLAY MOVIE X"&RETURN&RETURN&"¼
  6. Drop this behavior onto  a Sprite, the Stage or into the Script Channel of ¼
  7. the Score to start a sequence and move the playback head to a given movie."&¼
  8. RETURN&RETURN&"¼
  9. Use the 'Play Done' behavior to end the sequence and to tell the ¼
  10. playback head to return to the current frame."&RETURN&RETURN&"¼
  11. PARAMETERS:"&RETURN&"¼
  12. * Play which movie on mouseUp?"&RETURN&RETURN&"¼
  13. If the target movie is in the same folder as the current movie then you need ¼
  14. only enter the name of the movie.  If the  movie is in a different folder, ¼
  15. then enter the full or relative path name to  the target movie."&¼
  16. RETURN&RETURN&"¼
  17. ASSOCIATED BEHAVIORS:"&RETURN&"¼
  18. + Play Frame X"&RETURN&"¼
  19. + Play Done"
  20. end getBehaviorDescription
  21.  
  22.  
  23. on getBehaviorTooltip me
  24.   return "¼
  25. Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
  26. Jumps the playback head to the given movie.  Acts"&RETURN&"¼
  27. on mouseUp or on exitFrame, depending on whether"&RETURN&"¼
  28. you drag it to a sprite or to the Stage."&RETURN&RETURN&"¼
  29. Use the 'Play Done' behavior to return to this frame."
  30. end getBehaviorTooltip
  31.  
  32.  
  33.  
  34. -- HISTORY --
  35.  
  36. -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
  37.  
  38.  
  39.  
  40. property myTargetMovie
  41.  
  42.  
  43. on mouseUp me
  44.   play movie myTargetMovie
  45. end mouseUp
  46.  
  47.  
  48. on exitFrame me
  49.   if the currentSpriteNum = 0 then
  50.     play movie myTargetMovie
  51.   end if
  52. end exitFrame
  53.  
  54.  
  55. on getPropertyDescriptionList me
  56.   if the currentSpriteNum = 0 then
  57.     theComment = "Play which movie on exitFrame?"
  58.   else
  59.     theComment = "Play which movie on mouseUp?"
  60.   end if
  61.   theComment = theComment&RETURN&"(Include path if necessary)."
  62.   return ¼
  63. [ ¼
  64.  #myTargetMovie: ¼
  65.  [ ¼
  66.   #comment: theComment, ¼
  67.   #format:  #movie, ¼
  68.   #default: "Type the name of your movie here" ¼
  69.  ] ¼
  70. ]
  71. end getPropertyDescriptionList